const params = getParams();
//加载列表
if (params.url) {
	document.querySelector('.main-frame').src = params.url;
	document.querySelector('.open-in-newtab').href = params.url;
} else {
	location.href = '/';
}
function onResize() {
	document.querySelector('.main-frame').style.height = (document.body.offsetHeight - document.querySelector('.mdl-layout__header').offsetHeight) + 'px';
}
window.addEventListener('resize', onResize);
onResize();